/*========== 公共样式 ==========*/
html, body, div, p, ul, ol, li, dl, dt, dd, h1, h2, h3, h4, h5, h6, form, input, select, button, textarea, iframe, table, th, td {margin: 0 auto; padding: 0;font-family: "Microsoft YaHei";}
img { border: 0 none; vertical-align: top;}
ul,li,dl,dd,dt { list-style-type: none; }
i,em,cite { font-style: normal; }
body {  -webkit-text-size-adjust:none; font-family:"Helvetica Neue",Helvetica,Arial,"sans-serif","PingFang SC";}
a{ text-decoration: none; }
a:focus,input:focus,select:focus { outline: none; }

/*黑色顶部 Strat*/
.black_nav{
    width: 100%;
    height: 40px;
    background: #333;
    line-height: 40px;
}

/*给一个小的盒子，水平居中*/
.warp{
    width: 1226px;
    height: 10px;
    margin: 0 auto;
}
/*给大盒子里面的li标签左浮动*/
.black_nav li {
    float: left;
    position: relative;
}
.black_nav a{
    color: #b0b0b0;
    font-size: 12px;
}

/*让span标签外边距的填充，字体就居中了*/
.black_nav span{
    margin: 0 6px;
    color: #424242;
}
.black_nav a:hover{
    color: #fff;
}

/*接下来设置下载APP的二维码提示*/
/*设置绝对定位，li设置了相对定位，子绝父相*/
/*设置display: none;进行隐藏*/
.litel-box{
    width: 124px;
    height: 150px;
    background-color: #fff;
    position: absolute;
    top:40px;
    left: 50%;
    margin-left: -65px;
    box-shadow: 0 1px 5px rgb(170,170,170);
    padding: 18px 0;
    box-sizing: border-box;
    text-align: center;   /*img是行内元素，让齐居中*/
    display: none;   
}

/*鼠标移动显示提示框*/
.black_nav li:hover>.litel-box{
    display: block;
}

.litel-box>img{
    width: 90px;
}
.litel-box P{
    font-size: 14px;
    color: #333;
    margin-top: 14px;
    line-height: 14px;
}

/*提示框三角形*/
/*知识点提示：绝对定位是找父元素定位，不会找子元素定位的*/
/*一定要记住子绝父相*/
.black_nav .triangle{
    width: 0;
    height: 0;
    border-bottom: 10px solid #fff;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    position: absolute;
    bottom: 0px;
    left: 50%;
    margin-left: -16px;
    display: none;
}
.black_nav li:hover>.triangle{
    display: block;
}


/*登录注册消息通知购物车右浮动。不设置只会左浮动*/
/*字体继承了a标签的属性*/
.black_nav-right{
    float: right;
}

/*购物车*/
.shopping_car{
    width: 120px;
    height: 40px;
    background-color: #424242;
    text-align: center;
    margin-left: 25px;
    cursor: pointer;
    position: relative;
}

/*购物车图标*/
/*vertical-align: middle;是根据父元素进行垂直对齐*/
.shopping_car i{
    margin-right: 5px;
    font-size: 20px;
    vertical-align: middle;
}
.shopping_car:hover{
    background-color: #fff;
}
.shopping_car:hover a{
    color: #ff6700;
}


/*让高度变0，溢出隐藏字体，相当于display:none，可以使用过渡效果*/
/*使用display将行内转成块元素，不能使用transition过渡效果*/
.shopping_car .cart{
    width: 316px;
    height: 0;
    background-color: #fff;
    position: absolute;
    top: 100%;
    right: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    color: #424242;
    font-size: 12px;
    overflow: hidden;
    transition: all 1s;
}

/*当鼠标移到时，高度恢复*/
.shopping_car:hover>.cart{
    height: 98px;
    line-height: 98px;
}
